package com.x.reader.model;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseModel;

import java.util.List;

@MappingTable(tableName = "reader_category")
public class Category extends BaseModel {
    @MappingColumn(columnName = "category_id", columnLength = 32, columnPk = true)
    private Integer categoryId;

    @MappingColumn(columnName = "category_parent_id")
    private Integer categoryParentId;

    @MappingColumn(columnName = "category_code")
    private String categoryCode;

    @MappingColumn(columnName = "category_name")
    private String categoryName;

    @MappingColumn(columnName = "category_image")
    private String categoryImage;

    @MappingColumn(columnName = "category_type")
    private Integer categoryType;

    private List<BaseModel> list;

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public Integer getCategoryParentId() {
        return categoryParentId;
    }

    public void setCategoryParentId(Integer categoryParentId) {
        this.categoryParentId = categoryParentId;
    }

    public String getCategoryCode() {
        return categoryCode;
    }

    public void setCategoryCode(String categoryCode) {
        this.categoryCode = categoryCode;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCategoryImage() {
        return categoryImage;
    }

    public void setCategoryImage(String categoryImage) {
        this.categoryImage = categoryImage;
    }

    public Integer getCategoryType() {
        return categoryType;
    }

    public void setCategoryType(Integer categoryType) {
        this.categoryType = categoryType;
    }

    public List<BaseModel> getList() {
        return list;
    }

    public void setList(List<BaseModel> list) {
        this.list = list;
    }

}
